From 99147f70dbce38934c507a4546bace62b141d75b Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 2 Jul 2007 03:41:59 +0000 Subject: [PATCH] Allow geocache placer to be empty in GPX read. --- gpx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpx.c b/gpx.c index c287bc746..1ffc22319 100644 --- a/gpx.c +++ b/gpx.c @@ -650,7 +650,7 @@ gpx_start(void *data, const XML_Char *xml_el, const XML_Char **xml_attr) tag_cache_desc(attr); break; case tt_cache_placer: - if (0 == strcmp(attr[0], "id")) { + if (*attr && (0 == strcmp(attr[0], "id"))) { wpt_tmp->gc_data.placer_id = atoi(attr[1]); } default: -- 2.30.2